﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Super_Pong
{
    public abstract class Entity
    {
        Vector2 position;
        Texture2D texture;
        Vector2 speed;

        //Adicionado por Lucas
        /*
        abstract public void update(GameTime time, GameWindow window);
        */
        public void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }

        public void setTexture(Texture2D Texture)
        {
            this.texture = Texture;
        }

        public void setPos(Vector2 Pos)
        {
            position = Pos;
        }

        public void move(Vector2 move)
        {
            position += move;
        }

        public void setSpd(Vector2 spd)
        {
            speed = spd;
        }

        public void accelerate(float accel)
        {
            speed.X *= accel;
            speed.Y *= accel;
        }


        public Texture2D getTexture()
        {
            return texture;
        }

        public Vector2 getSpd()
        {
            return speed;
        }

        public Vector2 getPos()
        {
            return position;
        }
    }
}
